import numpy as np
from  multiprocessing import Process 
import cv2,Queue


lower_blue = np.array([0,0,0])
upper_blue = np.array([170,255,46])
cap = cv2.VideoCapture(0)

	hsv = cv2.cvtColor(frame,cv2.COLOR_BGR2HSV)
	mask = cv2.inRange(hsv,lower_blue,upper_blue)
	return hsv
	
while(True):
	ret, frame = cap.read()
	
	e1 = cv2.getTickCount()
	hsv = Process(target = Frame_HSV(e1 ,frame))
	hsv.start
	
	# mask = cv2.inRange(hsv,lower_blue,upper_blue)
	# cv2.imshow('frame',frame)
	# cv2.imshow("mask",mask)
	if cv2.waitKey(1) & 0xFF == ord('q'):
		break
cap.release()
cv2.destroyAllWindows()






# def f(q,x):
	# print x
	# q.put([x,'hello'])
	# return x*x

# if __name__ == '__main__':
	# q = Queue()
	# for i in range(5):
		# p = Process(target=f ,args = (q,i))
		# p.start()
	# print q.get()